package com.abhi.webservices.services;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import web.login.dao.LoginDao;
import web.login.entity.Login;

@Service(value="restTestServices")
public class RestTestServices {

	private final Log log = LogFactory.getLog(RestTestServices.class);
	
	 @Autowired
	 private LoginDao loginDao;

	public LoginDao getLoginDao() {
		return loginDao;
	}

	public void setLoginDao(LoginDao loginDao) {
		this.loginDao = loginDao;
	}
	 
	public List<Login> getAllLogins()
	{
		return this.loginDao.getAllLogin();
	}
}
